# guess_num = int(input("请输入你要让用户猜的数字："))
import random

guess_num = random.randint(1,100)

for count in range(1,6):
    num = int(input(f"请输入你第{count}次猜的数字："))
    if num >guess_num:
        print("你猜的数字大了一些")
    elif num <guess_num:
        print("你猜的数字小了一些")
    else:
        print(f"恭喜你猜对了，数字为{guess_num}")
        break

    if count==5:
        print(f"很遗憾你没有猜中数字,数字为{guess_num}，你已经用完了5次机会")